    <div class="mainCon">
        <div class="breadCurmbs"><a href="#">新增管理员</a></div>
      <div class="box" id="edit" >
          <form action="<?php echo site_url("admin/admin/admin_add") ?>"  onsubmit="return check();"   method="post"  enctype="multipart/form-data" >
          <font color="red"><?php if($error) echo $error; ?></font>
             <table cellpadding="0" cellspacing="0" border="0" class="table-3">  
           		<tr>
                    <td class="num1">用户名：</td>
                    <td class="num2">
                        <input type="text" placeholder="请输入用户名" name="name" value="<?php echo set_value('name');?>"/>
                        <span class="help-inline"><?php echo form_error('name'); ?></span>
                    </td>
                </tr>
           		<tr>
                    <td class="num1">密码：</td>
                    <td class="num2">
                        <input type="password" placeholder="请输入密码" name="password" value="<?php echo set_value('password');?>"/>
                        <span class="help-inline"><?php echo form_error('password'); ?></span>
                    </td>
                </tr>
                <tr>
                	<td class="num1">确认密码：</td>
                    <td class="num2">
                        <input type="password" placeholder="请确认密码" name="cpassword" value="<?php echo set_value('cpassword');?>"/>
                        <span class="help-inline"><?php echo form_error('cpassword'); ?></span>
                    </td>
                </tr>
                <tr>
                	<td class="num1">权限：</td>
                    <td class="num2">
                        <input type="radio" name="authority" value="0"/> 普通管理员 &nbsp;&nbsp;
                        <input type="radio" name="authority" value="1"/> 超级管理员 &nbsp;&nbsp;
                        <span class="help-inline"><?php echo form_error('authority'); ?></span>
                    </td>
                </tr>
                <tr>
                	<td class="num1">管理位置：</td>
                    <td class="num2">
                        <input type="radio" name="position" value="0"/> 前台管理员 &nbsp;&nbsp;
                        <input type="radio" name="position" value="1"/> 后台管理员 &nbsp;&nbsp;
                        <input type="radio" name="position" value="2"/> 前后台管理员 &nbsp;&nbsp;
                        <span class="help-inline"><?php echo form_error('position'); ?></span>
                    </td>
                </tr>
                 <tr>
                     <td class="num1">个人链接：</td>
                     <td class="num2">
                         <input type="text" class="input-xxlarge" placeholder="请输入个人链接" name="url" value="<?php echo set_value('url');?>"/>
                         <span class="help-inline"><?php echo form_error('url'); ?></span>
                     </td>
                 </tr>
                 <tr>
                     <td class="num1">邮箱：</td>
                     <td class="num2">
                         <input type="text" class="input-xxlarge" placeholder="请输入个人邮箱" name="email" value="<?php echo set_value('email');?>"/>
                         <span class="help-inline"><?php echo form_error('email'); ?></span>
                     </td>
                 </tr>
                 <tr>
                     <td class="num1">联系电话：</td>
                     <td class="num2">
                         <input type="text" class="input-xxlarge" placeholder="请输入联系电话" name="phone" value="<?php echo set_value('phone');?>"/>
                         <span class="help-inline"><?php echo form_error('phone'); ?></span>
                     </td>
                 </tr>
                <tr>
                  <td class="num1"></td>
                  <td class="num2">
                      <input type="submit" href="<?php echo site_url('admin/admin/admin_add')?>" class="btn btn-danger" value="添加"/>
                  </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
   function check()
   {
	  var  video_title = document.getElementsByTabName("input").value;
	  if(video_title=='')
	   {
		   alert("请输入完整信息！");
			return false;	
	   }
	   return true;
   }
</script>